﻿using System.Web;
using System.Web.Optimization;

namespace EC18_ESHOP
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                       
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));

            //script mặc định của template admin được trích ra trong file index.html của template ace
            //lưu ý trong template ace thì các file deu co' duoi *.min.js hoặc *.min.css nhưng trong visual mặc định sẽ bỏ
            //qua những file nào có đuôi là *.min.*, nên khi include sẽ không thấy dc file, nên phải bỏ đuôi *.min.* đi roi moi include
            bundles.Add(new ScriptBundle("~/bundles/js_admin").Include(
                        "~/Content/assets/js/jquery-1.10.2.js",
                        "~/Content/assets/js/bootstrap.js",
                        "~/Content/assets/js/jquery-ui-1.10.3.custom.js",
                        "~/Content/assets/js/jquery.ui.touch-punch.js",
                        "~/Content/assets/js/jquery.slimscroll.js",
                        "~/Content/assets/js/jquery.easy-pie-chart.js",
                        "~/Content/assets/js/jquery.sparkline.js",
                        "~/Content/assets/js/flot/jquery.flot.js",
                        "~/Content/assets/js/flot/jquery.flot.pie.js",
                        "~/Content/assets/js/flot/jquery.flot.resize.js",
                        "~/Content/assets/js/ace-elements.js",
                        "~/Content/assets/js/ace.js",
                        "~/Content/assets/js/date-time/daterangepicker.js",
                        "~/Content/assets/js/date-time/bootstrap-datepicker.js",
                        "~/Content/assets/js/date-time/bootstrap-timepicker.js"
                       
                        ));

            //css mặc định của template admin được trích ra trong file index.html của template ace
            bundles.Add(new StyleBundle("~/Content/css_admin").Include(
                        "~/Content/assets/css/bootstrap.css",
                        "~/Content/assets/css/Quoi.css",
                        "~/Content/assets/css/bootstrap-responsive.css",
                        "~/Content/assets/css/font-awesome.css",
                        "~/Content/assets/css/jquery-ui-1.10.3.custom.css",
                        "~/Content/assets/css/ace.css",
                        "~/Content/assets/css/ace-responsive.css",
                        "~/Content/assets/css/ace-skins.css",
                        "~/Content/assets/css/daterangepicker.css",
                        "~/Content/assets/css/datepicker.css"
                        ));
        }
    }
}